<?php include "../public/header.php";?>
<?php include "../public/header_show.php";?>
<body id="xiangqingPage">
<div id="xiangqingBox">
    <div class="page-title">
        <div class="page-title-con">
            <span class="pageshowtitle">详情</span>
            <div class="page-title-opt-list">
                <?php include "../public_flow/flow_show_optbut.php";?>
                <button class="layui-btn layui-btn-sm btn-light marginr5 opt">
                    操作<i class="layui-icon layui-icon-down layui-font-12"></i>
                </button>
                <span id="page-close" class="page-close" onclick="layer_close()">×</span>
            </div>
        </div>
    </div>
    <div class="main-container">

        <div><?php include "../public_flow/flow_show_info.php";?></div>

        <div class="table-box tablenes">
            <div class="title">基本信息</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">人员</td><td id="arcid_name" class="colorlan tv"></td><td class="tt">劳动合同编号</td><td id="number" class="tv"></td></tr>
                <tr><td class="tt">合同期限类型</td><td id="tongtype" colspan="3" class="tv"></td></tr>
                <tr><td class="tt">期限起</td><td id="xiandt" class="tv"></td><td class="tt">期限止</td><td id="xianzhidt" class="tv"></td></tr>
                <tr><td class="tt">试用期起</td><td id="shidt" class="tv"></td><td class="tt">试用期止</td><td id="shizhidt" class="tv"></td></tr>
                <tr><td class="tt">试用工资(元/月)</td><td id="gongfee" class="tv"></td><td class="tt">转正工资(元/月)</td><td id="zhuanfee" class="tv"></td></tr>
                <tr><td class="tt">合同状态</td><td id="state" class="tv"></td><td class="tt">合同性质</td><td id="nature" class="tv"></td></tr>
                <tr><td class="tt">提前终止日期</td><td id="zhongdt" class="tv"></td><td class="tt">签约日期</td><td id="qiandt" class="tv"></td></tr>
                <tr><td class="tt">备注</td><td class="tv" id="explain" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>

        <div><?php include "../public/upinfo_show.php";?></div>

        <div><?php include "../public_flow/flow_show_flowrelas.php";?></div>


        <div><?php include '../public_flow/flow_show_shenlog.php'?></div>
        <div><?php include '../public_flow/flow_show_talk.php'?></div>
        <div><?php include '../public/opt_browse.php'?></div>
    </div>
</div>
<script>
    var param_id = getQueryVariable('id') || 0;

    layui.use(['form', 'layer', "laytp",'element','dropdown','laypage','table','soulTable'], function() {
        var laypage = layui.laypage, table = layui.table, dropdown = layui.dropdown, form = layui.form, soulTable = layui.soulTable,element = layui.element;

        facade.ajax({url: ask_archive_tong_show, data:{id: param_id}}).done(function(res){
            if (res.code === 2000) {
                var data = res.data.data;
                var arcinfo = res.data.arcinfo;


                $("#arcid_name").text(arcinfo.name).click(function () {
                    openPage('../cert_person/show.php?id='+arcinfo.id);
                });

                $("#arcid_name").text(data.arcid_name);
                $("#number").text(data.number);
                $("#tongtype").text(data.tongtype);
                $("#xiandt").text(data.xiandt);
                $("#xianzhidt").text(data.xianzhidt);
                $("#shidt").text(data.shidt);
                $("#shizhidt").text(data.shizhidt);
                $("#gongfee").text(data.gongfee);
                $("#zhuanfee").text(data.zhuanfee);
                $("#state").text(data.state);
                $("#nature").text(data.nature);
                $("#zhongdt").text(data.zhongdt);
                $("#qiandt").text(data.qiandt);
                $("#explain").text(data.explain);

                // $(".pageshowtitle").text('劳动合同');
                public_upload_show_file('upload_files', res.data.files);
                render_from();
            }
        });

        public_get_readsandlog('archive_tong', param_id);
        showpage_dropopt();
    });



</script>
</body>
</html>




